package homework;

public class SnakeToCamel {

    public String snakeToCamel(String string){

        String[] str = string.split("_");
        string = "";
        for (int i = 0; i < str.length; i++){
            if (i != 0){
                char[] chars = str[i].toCharArray();
                str[i] = "";
                chars[0] = (char) (chars[0] - 32);
                for (int j = 0; j < chars.length; j++){
                    str[i] += chars[j];
                }
            }
            string += str[i];
        }
        return string;
    }


}
